#ifndef _INFORMATION_TASK_H_
#define _INFORMATION_TASK_H_

#include "my_main.h"

#define KEY_Q 0x0040
#define KEY_W 0x0001
#define KEY_E 0x0080
#define KEY_R 0x0100
#define KEY_A 0x0004
#define KEY_S 0x0002
#define KEY_D 0x0008
#define KEY_F 0x0200
#define KEY_G 0x0400
#define KEY_Z 0x0800
#define KEY_X 0x1000
#define KEY_C 0x2000
#define KEY_V 0x4000
#define KEY_B 0x8000
#define KEY_SHIFT 0x0010
#define KEY_CTRL 0x0020


#define LED_RGB_RED 2
#define LED_RGB_GREEN 1
#define LED_RGB_BLUE 0

#define LED_aRGB(aRGB) {\
											TIM_SetCompare(TIM5,LED_RGB_RED+1,((aRGB>>16)&0XFF)*((aRGB>>24)&0XFF));\
											TIM_SetCompare(TIM5,LED_RGB_GREEN+1,((aRGB>>8)&0XFF)*((aRGB>>24)&0XFF));\
											TIM_SetCompare(TIM5,LED_RGB_BLUE+1,((aRGB>>0)&0XFF)*((aRGB>>24)&0XFF));\
										}
typedef enum
{
	Null_data,
	Main_Con_C_data,
	UWB_data,
	Action_imu_data,
	Black_Box_data
}IMU_DATA_E;


extern fp32 voltage;
extern fp32 temperature;
extern uint8_t handware_version;
void LED_RGB_Task(void* parameter);
void Remote_Task(void *parameter);
void IMU_Task(void *parameter);
void Get_ADC_Task(void *parameter);



#endif








